
.PHONY: all
all:

.PHONY: po
po:
	intltool-extract -type=gettext/glade ../lib/translate/ui/translator.xml
	xgettext --language=Python --keyword=_ --keyword=N_ -o bgTranslator.pot ../scripts/bgTranslator ../lib/translate/ui/translator.xml.h

.PHONY: po_zhtw
po_zhtw: po
	msginit --input=bgTranslator.pot --locale=zh_TW.utf-8 -o zh_TW.po

.PHONY: install_mo
install_mo:
	msgfmt zh_TW.po -o /usr/share/locale/zh_TW/LC_MESSAGES/bgTranslator.mo


